package com.google.gwt.sample.dynatablerf.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.TabLayoutPanel;

public class GoToStartViewEvent extends
		GwtEvent<GoToStartViewEventHandler> {

	public static Type<GoToStartViewEventHandler> TYPE = new Type<GoToStartViewEventHandler>();

	private TabLayoutPanel container;

	public GoToStartViewEvent(TabLayoutPanel container) {

		super();
		this.container = container;
	}

	@Override
	protected void dispatch(GoToStartViewEventHandler handler) {

		handler.onGoToStartView(this);
	}

	@Override
	public Type<GoToStartViewEventHandler> getAssociatedType() {

		return TYPE;
	}

	public TabLayoutPanel getContainer() {
		return container;
	}

	public void setContainer(TabLayoutPanel container) {
		this.container = container;
	}

}
